package com.zhangjie.serviceorder.remote;

import com.zhangjie.internalcommon.dto.Car;
import com.zhangjie.internalcommon.dto.PriceRule;
import com.zhangjie.internalcommon.dto.ResponseResult;
import com.zhangjie.internalcommon.response.OrderDriverResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther: zj
 * @Date: 2024/3/8 - 03 - 08 - 12:39
 * @Description: com.zhangjie.serviceorder.remote
 * @version: 1.0
 */
@FeignClient("service-driver-user")
public interface ServiceDriverUserClient {

    @RequestMapping(method = RequestMethod.GET, value = "/city-driver/is-available-driver")
    public ResponseResult<Boolean> isAvailableDriver(@RequestParam String cityCode);

    @RequestMapping(method = RequestMethod.GET, value = "/get-available-driver{carId}")
    public ResponseResult<OrderDriverResponse> getAvailableDriver(@PathVariable("carId") Long carId);

    @RequestMapping(method = RequestMethod.GET, value = "/car")
    public ResponseResult<Car> getCarById(@RequestParam Long carId);
}
